home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / ui_text.h < prev    next >
C/C++ Source or Header  |  2000-05-01  |  3KB  |  160 lines

  1. #ifndef ui_text_h
  2. #define ui_text_h
  3.  
  4. /* Important: this must match the default_text list in ui_text.c! */
  5. enum
  6. {
  7.     UI_first_entry = -1,
  8.  
  9.     UI_mame,
  10.  
  11.     /* copyright stuff */
  12.     UI_copyright1,
  13.     UI_copyright2,
  14.     UI_copyright3,
  15.  
  16.     /* misc menu stuff */
  17.     UI_returntomain,
  18.     UI_returntoprior,
  19.     UI_anykey,
  20.     UI_on,
  21.     UI_off,
  22.     UI_NA,
  23.     UI_INVALID,
  24.     UI_none,
  25.     UI_cpu,
  26.     UI_address,
  27.     UI_value,
  28.     UI_sound,
  29.     UI_sound_lc, /* lower-case version */
  30.     UI_stereo,
  31.     UI_vectorgame,
  32.     UI_screenres,
  33.     UI_text,
  34.     UI_volume,
  35.     UI_relative,
  36.     UI_allchannels,
  37.     UI_brightness,
  38.     UI_gamma,
  39.     UI_vectorintensity,
  40.     UI_overclock,
  41.     UI_allcpus,
  42.     UI_historymissing,
  43.  
  44.     /* special characters */
  45.     UI_leftarrow,
  46.     UI_rightarrow,
  47.     UI_uparrow,
  48.     UI_downarrow,
  49.     UI_lefthilight,
  50.     UI_righthilight,
  51.  
  52.     /* warnings */
  53.     UI_knownproblems,
  54.     UI_imperfectcolors,
  55.     UI_wrongcolors,
  56.     UI_imperfectsound,
  57.     UI_nosound,
  58.     UI_nococktail,
  59.     UI_brokengame,
  60.     UI_brokenprotection,
  61.     UI_workingclones,
  62.     UI_typeok,
  63. #ifdef MESS
  64.     UI_comp1,
  65.     UI_comp2,
  66. #endif
  67.  
  68.     /* main menu */
  69.     UI_inputgeneral,
  70.     UI_dipswitches,
  71.     UI_analogcontrols,
  72.     UI_calibrate,
  73.     UI_bookkeeping,
  74.     UI_inputspecific,
  75.     UI_gameinfo,
  76.     UI_history,
  77.     UI_resetgame,
  78.     UI_returntogame,
  79. #ifdef MESS
  80.     UI_imageinfo,
  81.     UI_filemanager,
  82.     UI_tapecontrol,
  83. #endif
  84.     UI_cheat,
  85.     UI_memorycard,
  86.  
  87.     /* input stuff */
  88.     UI_keyjoyspeed,
  89.     UI_reverse,
  90.     UI_sensitivity,
  91.  
  92.     /* stats */
  93.     UI_tickets,
  94.     UI_coin,
  95.     UI_locked,
  96.  
  97.     /* memory card */
  98.     UI_loadcard,
  99.     UI_ejectcard,
  100.     UI_createcard,
  101.     UI_resetcard,
  102.     UI_loadfailed,
  103.     UI_loadok,
  104.     UI_cardejected,
  105.     UI_cardcreated,
  106.     UI_cardcreatedfailed,
  107.     UI_cardcreatedfailed2,
  108.     UI_carderror,
  109.  
  110.     /* cheat stuff */
  111.     UI_enablecheat,
  112.     UI_addeditcheat,
  113.     UI_startcheat,
  114.     UI_continuesearch,
  115.     UI_viewresults,
  116.     UI_restoreresults,
  117.     UI_memorywatch,
  118.     UI_generalhelp,
  119.     UI_watchpoint,
  120.     UI_disabled,
  121.     UI_cheats,
  122.     UI_watchpoints,
  123.     UI_moreinfo,
  124.     UI_moreinfoheader,
  125.     UI_cheatname,
  126.     UI_cheatdescription,
  127.     UI_code,
  128.  
  129.     /* watchpoint stuff */
  130.     UI_watchlength,
  131.     UI_watchlabeltype,
  132.     UI_watchlabel,
  133.     UI_watchx,
  134.     UI_watchy,
  135.     UI_watch,
  136.  
  137.     UI_last_entry
  138. };
  139.  
  140. struct lang_struct
  141. {
  142.     int version;
  143.     int multibyte;            /* UNUSED: 1 if this is a multibyte font/language */
  144.     UINT8 *fontdata;        /* pointer to the raw font data to be decoded */
  145.     UINT16 fontglyphs;        /* total number of glyps in the external font - 1 */
  146.     char langname[255];
  147.     char fontname[255];
  148.     char author[255];
  149. };
  150.  
  151. extern struct lang_struct lang;
  152.  
  153. int uistring_init (void *language_file);
  154. void uistring_shutdown (void);
  155.  
  156. const char * ui_getstring (int string_num);
  157.  
  158. #endif
  159.  
  160.